#include "junix.h"

long uptime()
{
	float sec = 0;
	FILE *fh;
	if( (fh=fopen("/proc/uptime", "r")) != NULL){
		fscanf(fh, "%f", &sec);
		fclose(fh);
	}

	return (long)(sec * 1000);
}


int main(int argc, char **argv)
{
	printf("uptime:%ld\n", uptime() );
    exit(0);
}

